<template>
	<view class="main">
		<view class="main-btn">
			会员低至2元/月,免广告、看10000+名厨视频
		</view>
		<template>
			<view class="main-text">{{dataVal.name}}</view>
			<view class="view-outer">
				<view>
					<text :class="[index == 0 ? 'text-one' :'text-two']">{{dataVal.pageview}}浏览</text>
					<image class="outer-img" src="../../../static/vip/eye.png" mode=""></image>
				</view>
				<view>
					<text :class="[index == 0 ? 'text-one' :'text-two']">{{dataVal.collections}}收藏</text>
					<image class="outer-img" src="../../../static/vip/5.png" mode=""></image>
				</view>
			</view>
		</template>

	</view>
</template>

<script>
	export default {
		props:['dataVal','name'],
		data() {
			return {

			}
		},
		watch:{
			dataVal(nevVal,oldVal){
				// console.log(nevVal,oldVal)
			}
		}
	}
</script>

<style scoped>
	.main {
		width: 750rpx;
		height: 300rpx;
		/* border: 1px solid red; */
		padding-bottom: 40rpx;
	}

	.main-btn {
		margin: 28rpx auto;
		background-image: linear-gradient(90deg, rgb(231, 181, 100) 0%, rgb(240, 195, 121), 30%, rgb(231, 181, 100));
		width: 660rpx;
		height: 88rpx;
		font-size: 14px;
		font-weight: bold;
		color: #FFFFFF;
		text-align: center;
		line-height: 88rpx;
		border-radius: 10rpx;
	}

	.main-text {
		font-size: 40rpx;
		margin-top: 52rpx;
		margin-bottom: 32rpx;
		text-align: center;
	}

	.view-outer {
		display: flex;
		margin-top: 40rpx;
		justify-content: center;
		align-items: center;

	}

	.view-outer>view {
		margin-left: 20rpx;
	}

	.outer-img {
		width: 26rpx;
		height: 26rpx;
		vertical-align: middle;
		margin-left: 10rpx;
	}


	.text-one {
		font-size: 25rpx;
		color: rgb(237, 103, 134);
		vertical-align: middle;
	}

	.text-two,
	.text-three {
		color: rgb(184, 184, 184);
		font-size: 25rpx;
		vertical-align: middle;
	}
</style>
